package cn.tedu.egweibo6.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class CommentDTO {
    @ApiModelProperty(value = "微博内容", required = true, dataType = "string")
    @Size(min = 5, max = 100, message = "评论长度为5-100字以内")
    private String content;
    @ApiModelProperty(value = "微博id", required = true, dataType = "long")
    private Long weiboId;
}
